
import axios from './axios'

/**
 *
 * @param {*} params 公共接口
 */
//获取用户处理消息
export function getUserMessage(params) {
    const url = '/ms/api/msg/getNewApproveWithMe'
    return axios.get(url, params)
}
//获取可供选择的接收人列表
export function getMsgRuleAvailableUsers(params) {
    const url = '/ms/api/msg/getAvailableRecUsers'
    return axios.get(url, params)
}

//地图人员列表
export function getMapEmpList(params) {
    const url = '/ms/api/index/getMapEmpList'
    return axios.get(url, params)
}

//查询当前组织机构权限
export function getDeptUserRules(params) {
    const url = '/ms/api/user/rules'
    return axios.get(url, params)
}

/**
 *
 * @param {*} params 内部应用
 */
// //查询冷藏车硬件数据
// export function getAllLcc(params) {
//     const url = '/ms/api/inner/device/lcc/log'
//     return axios.get(url, params)
// }
//查询安全帽硬件数据
export function getAllHelmet(params) {
    const url = '/ms/api/hdc/device/helmet/log'
    return axios.get(url, params)
}

//硬件数据
export function getAllDevice(params) {
    const url = '/ms/api/hdc/device/mach/log'
    return axios.get(url, params)
}

//查询硬件列表
export function getAllDeviceList(params) {
    const url = '/ms/api/hdc/device/list'
    return axios.get(url, params)
}

//查询考勤设备
export function getAllequip(params) {
    const url = '/ms/api/hdc/device/equip/log'
    return axios.get(url, params)
}

//查询OBD硬件数据
export function getAllOBD(params) {
    const url = '/ms/api/hdc/device/obd/data/list'
    return axios.get(url, params)
}

//查询OBD硬件数据详情
export function getAllOBDDetail(params) {
    const url = '/ms/api/hdc/device/obd/data/detail'
    return axios.get(url, params)
}

// 添加升级包
export function getInnerUpgradePackageAdd(params) {
    const url = '/ms/api/hdc/upgrade/package/add'
    return axios.post(url, params)
}

// 删除升级包
export function getInnerUpgradePackageDel(params) {
    const url = '/ms/api/hdc/upgrade/package/del/'
    return axios.post(url + params)
}

// 升级包列表
export function getInnerUpgradePackageList(params) {
    const url = '/ms/api/hdc/upgrade/package/list'
    return axios.get(url, params)
}

// 硬件升级列表
export function getInnerUpgradeDeviceList(params) {
    const url = '/ms/api/hdc/upgrade/device/list'
    return axios.get(url, params)
}

// 添加硬件升级记录
export function getInnerUpgradeDeviceAdd(params) {
    const url = '/ms/api/hdc/upgrade/device/add'
    return axios.post(url, params)
}

// 删除硬件升级记录
export function getInnerUpgradeDeviceDel(params) {
    const url = '/ms/api/hdc/upgrade/device/del/'
    return axios.post(url + params)
}

// 查询授权信息列表
export function getOpenapiLicenseList(params) {
    const url = '/ms/api/cfg/openapi/license/list'
    return axios.get(url, params)
}

// 应用授权启用
export function getOpenapiLicenseEnable(params) {
    const url = '/ms/api/cfg/openapi/license/enable/'
    return axios.post(url + params)
}

// 查询所有硬件类型
export function getAllHardwarePlatform(params) {
    const url = '/ms/api/hdc/platform/deviceType'
    return axios.get(url, params)
}

// 查询硬件平台列表
export function getHardwarePlatform(params) {
    const url = '/ms/api/hdc/platform/list'
    return axios.get(url, params)
}

// 查询硬件平台表格数据
export function getHardwarePlatformList(params) {
    const url = '/ms/api/hdc/platform/list'
    return axios.get(url, params)
}

// 添加硬件平台
export function getAddHardwarePlatform(params) {
    const url = '/ms/api/hdc/platform/add'
    return axios.post(url ,params)
}

// 编辑硬件平台
export function getUpdateHardwarePlatform(params) {
    const url = '/ms/api/hdc/platform/edit'
    return axios.post(url ,params)
}

// 删除硬件平台
export function getDeleteHardwarePlatform(params) {
    const url = '/ms/api/hdc/platform/del'
    return axios.post(url ,params)
}

// 应用授权禁用
export function getOpenapiLicenseDisable(params) {
    const url = '/ms/api/cfg/openapi/license/disable/'
    return axios.post(url + params)
}

// 查询项目应用授权(所有)
export function getOpenapiLicenseRuleList(params) {
    const url = '/ms/api/cfg/openapi/license/rule/list'
    return axios.get(url, params)
}

// 编辑项目应用授权
export function getOpenapiLicenseRuleEdit(params) {
    const url = '/ms/api/cfg/openapi/license/rule/edit'
    return axios.post(url, params)
}

// 获取配置中心配置数据
export function getCfgList(params) {
    const url = '/ms/api/cfg/list'
    return axios.get(url, params)
}

// 设置配置中心配置
export function setCfgConfigure(params) {
    const url = '/ms/api/cfg/configure'
    return axios.post(url, params)
}


/**
 *
 * @param {*} params 登录退出
 */
//退出登录
export function goOut() {
    const url = '/ms/api/logout'
    return axios.post(url)
}

//登录
export function goIn(params) {
    const url = '/ms/api/login'
    return axios.post(url, params)
}

//修改密码
export function changePsw(params) {
    const url = '/ms/api/user/updatePassword'
    return axios.post(url, params)
}

//微信扫码登录
export function getWXLogin(params) {
    const url = '/ms/api/wxlogin'
    return axios.post(url, params)
}

//第三方登录
export function getThirdLogin(params) {
    const url = '/ms/api/third-login'
    return axios.post(url, params)
}


/**
 *
 * @param {*} params 首页
 */
// 获取可供选择的工种或者岗位
export function getWorkTypeList(params) {
    const url = '/ms/api/index/getWorkTypeList'
    return axios.get(url, params)
}

//获取首页设备列表
export function getIndexMachList(params) {
    const url = '/ms/api/index/getMachList'
    return axios.get(url, params)
}

//获取首页设备列表
export function getIndexEmpList(params) {
    const url = '/ms/api/index/getEmpList'
    return axios.get(url, params)
}

//首页人员详细信息
export function getEmpDetail(params) {
    const url = '/ms/api/index/getEmpDetail'
    return axios.get(url, params)
}

// 首页考勤设备列表
export function getEquipIndexList(params) {
    const url = '/ms/api/equip/index/list'
    return axios.get(url, params)
}

//导出当天安全帽数据
export function getEmpDevExp(params) {
    const url = '/ms/api/device/emp/export?deptId='
    return axios.post(url + params)
}

/**
 *
 * @param {*} params 项目
 */

//项目管理列表(分页)
export function getProectList(params) {
    const url = '/ms/api/project/list'
    return axios.get(url, params)
}

//项目详情
export function getProectDetails(params) {
    const url = '/ms/api/project/detail'
    return axios.get(url, params)
}

//项目编辑
export function getProectUpdate(params) {
    const url = '/ms/api/project/edit'
    return axios.post(url, params)
}

//项目->上传图片
export function getProectUpload(params) {
    const url = '/ms/api/project/uploadImg'
    return axios.post(url, params)
}

//获取项目的天气预报
export function getWeather(params) {
    const url = '/ms/api/weather/current'
    return axios.get(url, params)
}

//项目--历史天气
export function getWeatherHistory(params) {
    const url = '/ms/api/weather/history'
    return axios.get(url, params)
}
export function getWeatherHistoryCalendar(params) {
    const url = '/ms/api/weather/schedule'
    return axios.get(url, params)
}
export function addSchedule(params) {
    const url = '/ms/api/appSchedule'
    return axios.post(url, params)
}
export function editSchedule(params) {
    const url = '/ms/api/appSchedule/edit'
    return axios.post(url, params)
}
export function deleteSchedule(params) {
    const url = '/ms/api/appSchedule/delete'
    return axios.post(url, params)
}
//项目--项目工区列表
export function getWorkAreaList(params) {
    const url = '/ms/api/work/area/list'
    return axios.get(url, params)
}
//项目--项目工区添加
export function getWorkAreaAdd(params) {
    const url = '/ms/api/work/area/add'
    return axios.post(url, params)
}//项目--项目工区编辑
export function getWorkAreaEdit(params) {
    const url = '/ms/api/work/area/edit'
    return axios.post(url, params)
}

//项目--项目工区删除
export function getWorkAreaDel(params) {
    const url = '/ms/api/work/area/del/'
    return axios.post(url+ params)
}

/**
 *
 * @param {*} params 人员管理
 */

//人员统计
export function getEmpNum(params) {
    const url = '/ms/api/emp/num'
    return axios.get(url, params)
}

//人员日考勤统计
export function getEmpAttendNum(params) {
    const url = '/ms/api/emp/attend/day/num'
    return axios.get(url, params)
}

//地图人员列表（聚合）
export function getIndexMapEmpPoly(params) {
    const url = '/ms/api/index/getMapEmpPoly'
    return axios.get(url, params)
}
//地图人员列表（班组视频监控)
export function getIndexMapEmpFvs(params) {
    const url = '/ms/api/index/getMapEmpFvs'
    return axios.get(url, params)
}
//获取是否展示班组监控
export function getIndexMapEmpTab(params) {
    const url = '/ms/api/index/fvs/tab'
    return axios.get(url, params)
}

//实名制下载人员
export function getEmpKeyPositionSync(params) {
    const url = '/ms/api/emp/sync/keyPosition/emp/sync?deptId='
    return axios.post(url + params)
}

// 闸机认证
export function getEmpKeyPositionComfirm(params) {
    const url = '/ms/api/emp/sync/keyPosition/emp/comfirm'
    return axios.post(url, params)
}

//导出人员日考勤数据
export function getAttendDayExport(params) {
    const url = '/ms/api/emp/attend/day/export'
    return axios.post(url, params)
}

//导出人员月考勤数据
export function getAttendMonthExport(params) {
    const url = '/ms/api/emp/attend/month/export'
    return axios.post(url, params)
}

//人员列表
export function getAllPersonnelList(params) {
    const url = '/ms/api/emp/list'
    return axios.get(url, params)
}

//未添加黑名单人员列表
export function getEmpBlackList(params) {
    const url = '/ms/api/emp/black/getEmpList'
    return axios.get(url, params)
}

//所在公司
export function getAllCompangList(params) {
    const url = '/ms/api/corp/getCorpList'
    return axios.get(url, params)
}

//获取人员详情
export function getPersonnelDetails(params) {
    const url = '/ms/api/emp/detail'
    return axios.get(url, params)
}

//上传图片-> 人员列表
export function getPersonnelUpload(params) {
    const url = '/ms/api/emp/uploadImg'
    return axios.post(url, params)
}

//增加人员
export function getPersonnelAdd(params) {
    const url = '/ms/api/emp/add'
    return axios.post(url, params)
}

//编辑人员
export function getPersonnelEdit(params) {
    const url = '/ms/api/emp/edit'
    return axios.post(url, params)
}

//删除人员
export function getPersonnelRemove(params) {
    const url = '/ms/api/emp/del/'
    return axios.post(url + params)
}

//人员进场
export function getPersonnelEnter(params) {
    const url = '/ms/api/emp/enter'
    return axios.post(url, params)
}

//人员退场
export function getPersonnelOuter(params) {
    const url = '/ms/api/emp/outer'
    return axios.post(url, params)
}

//人员批量退场
export function getPersonnelBatchOuter(params) {
    const url = '/ms/api/emp/outer/batch'
    return axios.post(url, params)
}

//人员 -> 硬件绑定
export function getPersonnelDevicerBind(params) {
    const url = '/ms/api/emp/device/bind'
    return axios.post(url, params)
}

//人员 -> 硬件解绑
export function getPersonnelDevicerUnbind(params) {
    const url = '/ms/api/emp/device/unbind'
    return axios.post(url, params)
}

//获取日考勤列表
export function getDayAttend(params) {
    const url = '/ms/api/emp/attend/day/list'
    return axios.get(url, params)
}

export function getMonthAttend(params) {
    const url = '/ms/api/emp/attend/month/list'
    return axios.get(url, params)
}

//运动轨迹
export function getPersonnelGps(params) {
    const url = '/ms/api/emp/attend/gps/list'
    return axios.get(url, params)
}

// 电子围栏列表
export function getFenceList(params) {
    const url = '/ms/api/fence/list'
    return axios.get(url, params)
}

//新增电子围栏
export function getFenceAdd(params) {
    const url = '/ms/api/fence/add'
    return axios.post(url, params)
}

//删除电子围栏
export function getFenceRemove(params) {
    const url = '/ms/api/fence/del/'
    return axios.post(url + params)
}

//电子围栏的考勤对象列表
export function getFenceEmpList(params) {
    const url = '/ms/api/fence/emp/list'
    return axios.get(url, params)
}

//添加电子围栏的考勤对象
export function getFenceEmpAdd(params) {
    const url = '/ms/api/fence/emp/add'
    return axios.post(url, params)
}

//删除电子围栏的考勤对象
export function getFenceEmpDel(params) {
    const url = '/ms/api/fence/emp/del'
    return axios.post(url, params)
}

//考勤方式设置
export function getEmpAttendTypeSet(params) {
    const url = '/ms/api/emp/attend/typeSet'
    return axios.post(url, params)
}

//实名制同步配置列表
export function realNameConfigList(params) {
    const url = '/ms/api/emp/syncRealNameConfig/list'
    return axios.post(url, params)
}

//新增实名制同步配置
export function addRealNameConfig(params) {
    const url = '/ms/api/emp/syncRealNameConfig/add'
    return axios.post(url, params)
}

//编辑实名制同步配置
export function editRealNameConfig(params) {
    const url = '/ms/api/emp/syncRealNameConfig/edit'
    return axios.post(url, params)
}

//删除实名制同步配置
export function delRealNameConfig(params) {
    const url = '/ms/api/emp/syncRealNameConfig/del'
    return axios.post(url, params)
}

//查询组织机构的考勤方式
export function getEmpAttendType(params) {
    const url = '/ms/api/emp/getAttendType'
    return axios.get(url, params)
}

// 人员工资列表
export function getPayrollList(params) {
    const url = '/ms/api/payroll/list'
    return axios.get(url, params)
}

//增加人员工资
export function getPayrollAdd(params) {
    const url = '/ms/api/payroll/add'
    return axios.post(url, params)
}

//删除人员工资
export function getPayrollRemove(params) {
    const url = '/ms/api/payroll/del/'
    return axios.post(url + params)
}

//提交工资
export function getPayrollCommit(params) {
    const url = '/ms/api/payroll/commit/'
    return axios.post(url + params)
}

//查看工资详情
export function getPayrollDetails(params) {
    const url = '/ms/api/payroll/detail'
    return axios.get(url, params)
}

//修改工资详情
export function getPayrollDetailsEdit(params) {
    const url = '/ms/api/payroll/detail/edit'
    return axios.post(url, params)
}

//上传工资详情附件
export function getPayrollAttachAdd(params) {
    const url = '/ms/api/payroll/attach/add'
    return axios.post(url, params)
}

//删除工资详情附件
export function getPayrollAttachRemove(params) {
    const url = '/ms/api/payroll/attach/del/'
    return axios.post(url + params)
}

//获取培训列表
export function getAttendList(params) {
    const url = '/ms/api/train/list'
    return axios.get(url, params)
}

//增加培训
export function getAttendAdd(params) {
    const url = '/ms/api/train/add'
    return axios.post(url, params)
}

//修改培训
export function getAttendEdit(params) {
    const url = '/ms/api/train/edit'
    return axios.post(url, params)
}

//删除培训记录
export function getAttendRemove(params) {
    const url = '/ms/api/train/del/'
    return axios.post(url + params)
}

// 提交培训记录
export function getAttendComplete(params) {
    const url = '/ms/api/train/complete/'
    return axios.post(url + params)
}

//获取人员培训记录
export function getAttendPsonList(params) {
    const url = '/ms/api/train/emp/list'
    return axios.get(url, params)
}

//增加人员培训记录
export function getAttendPsonAdd(params) {
    const url = '/ms/api/train/emp/add'
    return axios.post(url, params)
}

//删除人员培训记录
export function getAttendPsonRemove(params) {
    const url = '/ms/api/train/emp/del'
    return axios.post(url, params)
}

//录入人员成绩
export function getAttendPsonScore(params) {
    const url = '/ms/api/train/emp/score'
    return axios.post(url, params)
}

//获取合作单位列表
export function getCorpList(params) {
    const url = '/ms/api/corp/list'
    return axios.get(url, params)
}

//获取合作单位详情
export function getCorpDetails(params) {
    const url = '/ms/api/corp/detail'
    return axios.get(url, params)
}

//增加合作单位
export function getCorpAdd(params) {
    const url = '/ms/api/corp/add'
    return axios.post(url, params)
}

//修改合作单位
export function getCorpEdit(params) {
    const url = '/ms/api/corp/edit'
    return axios.post(url, params)
}

//删除合作单位
export function getCorpRemove(params) {
    const url = '/ms/api/corp/del/'
    return axios.post(url + params)
}

//刷脸记录列表
export function getAllGate(params) {
    const url = '/ms/api/emp/attend/faceGate/list'
    return axios.get(url, params)
}

//查询闸机列表
export function getFaceGateList(params) {
    const url = '/ms/api/faceGate/list'
    return axios.get(url, params)
}

//查看闸机授权人员
export function getFaceGateEmpList(params) {
    const url = '/ms/api/faceGate/emp/list'
    return axios.get(url, params)
}

//添加闸机
export function getFaceGateAdd(params) {
    const url = '/ms/api/faceGate/add'
    return axios.post(url, params)
}

//修改闸机
export function getFaceGateEdit(params) {
    const url = '/ms/api/faceGate/edit'
    return axios.post(url, params)
}

//删除闸机
export function getFaceGateRemove(params) {
    const url = '/ms/api/faceGate/del/'
    return axios.post(url + params)
}

//获取未授权的人员
export function getUnGrantListEmpList(params) {
    const url = '/ms/api/faceGate/emp/unGrantList'
    return axios.get(url, params)
}

//闸机-添加人员授权
export function getFaceGateEmpGrant(params) {
    const url = '/ms/api/faceGate/emp/grant'
    return axios.post(url, params)
}

// 闸机-取消人员授权
export function getFaceGateEmpRevoke(params) {
    const url = '/ms/api/faceGate/emp/revoke'
    return axios.post(url, params)
}

//读取身份证
export function getCard(params) {
    const url = 'http://127.0.0.1:24010/ZKIDROnline/ScanReadIdCardInfo'
    return axios.get(url, params)
}

//获取可添加的培训人员列表
export function getTrainEmpList(params) {
    const url = '/ms/api/train/getEmpList'
    return axios.get(url, params)
}

//获取人员二维码地址
export function getEmpQr(params) {
    const url = '/ms/api/emp/getEmpQr/'
    return axios.get(url + params)
}

//人员证书列表
export function getEmpCertList(params) {
    const url = '/ms/api/emp/cert/list'
    return axios.get(url, params)
}

//添加人员证书
export function getEmpCertAdd(params) {
    const url = '/ms/api/emp/cert/add'
    return axios.post(url, params)
}

//添加人员证书
export function getEmpCertEdit(params) {
    const url = '/ms/api/emp/cert/edit'
    return axios.post(url, params)
}

//删除证书
export function getEmpCertDel(params) {
    const url = '/ms/api/emp/cert/del/'
    return axios.post(url + params)
}

//上传证书附件
export function getEmpCertUploadCertFile(params) {
    const url = '/ms/api/emp/cert/uploadCertFile'
    return axios.post(url, params)
}

//劳务管理
//报警规则列表
export function getEmpSettingList(params) {
    const url = '/ms/api/warn/emp/setting/list'
    return axios.get(url, params)
}

//添加报警规则
export function getEmpSettingAdd(params) {
    const url = '/ms/api/warn/emp/setting/add'
    return axios.post(url, params)
}

//编辑报警规则
export function getEmpSettingEdit(params) {
    const url = '/ms/api/warn/emp/setting/edit'
    return axios.post(url, params)
}

//删除报警规则
export function getEmpSettingDel(params) {
    const url = '/ms/api/warn/emp/setting/del/'
    return axios.post(url + params)
}

//报警规则启用禁用
export function getEmpSettingEnable(params) {
    const url = '/ms/api/warn/emp/setting/enable'
    return axios.post(url, params)
}

//查询已有的报警人员
export function getEmpObjectList(params) {
    const url = '/ms/api/warn/emp/object/list'
    return axios.get(url, params)
}

//查询可供选择的报警对象列表
export function getEmpAllObjectEmp(params) {
    const url = '/ms/api/warn/emp/getAllObject'
    return axios.get(url, params)
}

//添加报警对象
export function getEmpObjectAdd(params) {
    const url = '/ms/api/warn/emp/object/add'
    return axios.post(url, params)
}

//设置报警时间
export function getEmpSetTime(params) {
    const url = '/ms/api/warn/emp/setTime'
    return axios.post(url, params)
}

//报警接收人及接收方式
export function getEmpUseList(params) {
    const url = '/ms/api/warn/emp/user/list'
    return axios.get(url, params)
}

//设置报警消息接收人
export function getEmpUseAdd(params) {
    const url = '/ms/api/warn/emp/setUser'
    return axios.post(url, params)
}

//报警记录列表
export function getEmpRecordList(params) {
    const url = '/ms/api/warn/emp/record/list'
    return axios.get(url, params)
}

//报警记录详情
export function getEmpRecordDetail(params) {
    const url = '/ms/api/warn/emp/record/detail'
    return axios.get(url, params)
}

//处理报警记录
export function getEmpRecordHandle(params) {
    const url = '/ms/api/warn/emp/record/handle'
    return axios.post(url, params)
}

//批量处理报警记录
export function getEmpRecordBatchHandle(params) {
    const url = '/ms/api/warn/emp/record/batchHandle'
    return axios.post(url, params)
}

//人员报警数量
export function getEmpRecordNum(params) {
    const url = '/ms/api/warn/emp/record/num'
    return axios.get(url, params)
}

//人员黑名单列表
export function getEmpBackList(params) {
    const url = '/ms/api/emp/black/list'
    return axios.get(url, params)
}

//添加人员黑名单
export function getEmpBackAdd(params) {
    const url = '/ms/api/emp/black/add'
    return axios.post(url, params)
}

//删除人员黑名单
export function getEmpBackDel(params) {
    const url = '/ms/api/emp/black/del/'
    return axios.post(url + params)
}

//查询人员实名制设置
export function getEmpGetSetting(params) {
    const url = '/ms/api/emp/getSetting'
    return axios.get(url, params)
}

//添加人员实名制设置
export function getEmpGetSettingAdd(params) {
    const url = '/ms/api/emp/setting/add'
    return axios.post(url, params)
}

//导出工资详情
export function getPayrollDetailExport(params) {
    const url = '/ms/api/payroll/detail/export/'
    return axios.post(url + params)
}

//导入工资详情
export function getPayrollDetailImport(params) {
    const url = '/ms/api/payroll/detail/import'
    return axios.post(url, params)
}

//打开记录
export function getEmpAttendRecord(params) {
    const url = '/ms/api/emp/attend/record'
    return axios.get(url, params)
}

//根据人员id查找电子围栏列表
export function getFenceListByEmpId(params) {
    const url = '/ms/api/fence/listByEmpId'
    return axios.get(url, params)
}

//班组列表
export function getGrouplist(params) {
    const url = '/ms/api/group/list'
    return axios.get(url, params)
}

//添加班组
export function getGroupAdd(params) {
    const url = '/ms/api/group/add'
    return axios.post(url, params)
}

//编辑班组
export function getGroupEdit(params) {
    const url = '/ms/api/group/edit'
    return axios.post(url, params)
}

//删除班组
export function getGroupDel(params) {
    const url = '/ms/api/group/del/'
    return axios.post(url + params)
}

//根据合作单位查找班组列表
export function getGroupListByCorpId(params) {
    const url = '/ms/api/group/groupListByCorpId'
    return axios.get(url, params)
}

//根据项目查找班组列表
export function getGroupListByProjectId(params) {
    const url = '/ms/api/group/groupListByProjectId'
    return axios.get(url, params)
}

//根据组织机构查找班组列表
export function getGroupListByDeptId(params) {
    const url = '/ms/api/group/groupListByDeptId'
    return axios.get(url, params)
}

//下载考勤二维码
export function getEmpAttendQr(params) {
    const url = '/ms/api/emp/attendQr/download/'
    return axios.post(url + params)
}

//录入记录列表
export function getInputDataList(params) {
    const url = '/ms/api/emp/attend/inputData/list'
    return axios.get(url, params)
}

//后台添加打卡记录
export function getInputDataAdd(params) {
    const url = '/ms/api/emp/attend/inputData/add'
    return axios.post(url, params)
}

//删除打卡记录
export function getInputDataDel(params) {
    const url = '/ms/api/emp/attend/inputData/del/'
    return axios.post(url + params)
}

//人员实名制列表
export function getEmpSyncList(params) {
    const url = '/ms/api/emp/sync/list'
    return axios.get(url, params)
}

// 合作单位同步-列表
export function getEmpSyncCorpList(params) {
    const url = '/ms/api/emp/sync/corp/list'
    return axios.get(url, params)
}

// 合作单位同步-列表
export function getEmpSyncCorpSync(params) {
    const url = '/ms/api/emp/sync/corp/sync'
    return axios.post(url, params)
}

// 班组同步-列表
export function getEmpSyncGroupList(params) {
    const url = '/ms/api/emp/sync/group/list'
    return axios.get(url, params)
}

//班组同步-同步
export function getEmpSyncGroupSync(params) {
    const url = '/ms/api/emp/sync/group/sync'
    return axios.post(url, params)
}

//人员同步-列表
export function getEmpSyncEmpList(params) {
    const url = '/ms/api/emp/sync/emp/list'
    return axios.get(url, params)
}

//人员信息同步-同步
export function getEmpSyncEmpSync(params) {
    const url = '/ms/api/emp/sync/emp/sync'
    return axios.post(url, params)
}

// 进退场同步-列表
export function getEmpSyncEntryExitList(params) {
    const url = '/ms/api/emp/sync/entryExit/list'
    return axios.get(url, params)
}

//进退场同步-同步
export function getEmpSyncEntryExitSync(params) {
    const url = '/ms/api/emp/sync/entryExit/sync'
    return axios.post(url, params)
}

//更新上报时间
export function getEmpSyncUpdateTime(params) {
    const url = '/ms/api/emp/sync/updateTime'
    return axios.post(url, params)
}

//考勤同步-列表
export function getEmpSyncAttendList(params) {
    const url = '/ms/api/emp/sync/attend/list'
    return axios.get(url, params)
}

//考勤同步-同步
export function getEmpSyncAttendSync(params) {
    const url = '/ms/api/emp/sync/attend/sync'
    return axios.post(url, params)
}

//工资同步-列表
export function getEmpSyncPayrollList(params) {
    const url = '/ms/api/emp/sync/payroll/list'
    return axios.get(url, params)
}

// 工资同步-同步
export function getEmpSyncPayrollSync(params) {
    const url = '/ms/api/emp/sync/payroll/sync'
    return axios.post(url, params)
}

//银行账户列表
export function getEmpBankList(params) {
    const url = '/ms/api/emp/bank/list'
    return axios.get(url, params)
}

//添加银行账户
export function getEmpBankAdd(params) {
    const url = '/ms/api/emp/bank/add'
    return axios.post(url, params)
}

//编辑银行账户
export function getEmpBankEdit(params) {
    const url = '/ms/api/emp/bank/edit'
    return axios.post(url, params)
}

//启用禁用
export function getEmpBankEnable(params) {
    const url = '/ms/api/emp/bank/enable'
    return axios.post(url, params)
}

//删除账户
export function getEmpBankDel(params) {
    const url = '/ms/api/emp/bank/del/'
    return axios.post(url + params)
}

//奖惩记录列表
export function getEmpRewardList(params) {
    const url = '/ms/api/emp/reward/list'
    return axios.get(url, params)
}

// 添加奖惩记录
export function getEmpRewardAdd(params) {
    const url = '/ms/api/emp/reward/add'
    return axios.post(url, params)
}

// 删除奖惩记录
export function getEmpRewardDel(params) {
    const url = '/ms/api/emp/reward/del/'
    return axios.post(url + params)
}

//改动 获取数据字典下拉值
export function getSelectValue(params){
    const url = '/ms/api/sys/dict/getChildListByParentCode'
    return axios.get(url, params)
}

//根据人员id获取工资列表
export function getEmpGetPayrollList(params) {
    const url = '/ms/api/emp/getPayrollList'
    return axios.get(url, params)
}

//通过人员id查找奖惩记录列表
export function getEmpGetRewardList(params) {
    const url = '/ms/api/emp/getRewardList'
    return axios.get(url, params)
}

//根据人员id查找合同列表
export function getEmpContractList(params) {
    const url = '/ms/api/emp/contract/list'
    return axios.get(url, params)
}

//添加合同
export function getEmpContractAdd(params) {
    const url = '/ms/api/emp/contract/add'
    return axios.post(url, params)
}

//编辑合同
export function getEmpContractEdit(params) {
    const url = '/ms/api/emp/contract/edit'
    return axios.post(url, params)
}

//删除合同
export function getEmpContractDel(params) {
    const url = '/ms/api/emp/contract/del/'
    return axios.post(url + params)
}

//上传合同附件
export function getEmpContractUpload(params) {
    const url = '/ms/api/emp/contract/upload'
    return axios.post(url, params)
}

//导出人员列表
export function getEmpExport(params) {
    const url = '/ms/api/emp/export'
    return axios.post(url, params)
}

//批量导入人员
export function getEmpImport(params) {
    const url = '/ms/api/emp/import'
    return axios.post(url, params)
}

//导出刷脸记录
export function getEmpfaceGateExport(params) {
    const url = '/ms/api/emp/attend/faceGate/export'
    return axios.post(url, params)
}

//获取未授权的人员
export function getEmpUnGrantList(params) {
    const url = '/ms/api/fence/emp/unGrantList'
    return axios.get(url, params)
}

//访客记录-列表
export function getEmpVisitor(params) {
    const url = '/ms/api/emp/attend/faceGate/visitor'
    return axios.get(url, params)
}

//访客记录-审核
export function getEmpVisitorCheck(params) {
    const url = '/ms/api/emp/visitor/check'
    return axios.post(url, params)
}

//访客记录-查询访客状态数量
export function getEmpVisitorNum(params) {
    const url = '/ms/api/emp/visitor/getNum'
    return axios.get(url, params)
}

//访客记录-申请
export function getEmpVisitorAdd(params) {
    const url = '/ms/api/emp/visitor/add'
    return axios.post(url, params)
}

//访客记录-导出
export function getEmpVisitorExport(params) {
    const url = '/ms/api/emp/visitor/export'
    return axios.get(url, params)
}

//访客记录-删除
export function getEmpVisitorDel(params) {
    const url = '/ms/api/emp/visitor/del/'
    return axios.post(url + params)
}

//查看闸机授权失败人员
export function getEmpFailList(params) {
    const url = '/ms/api/faceGate/emp/failList'
    return axios.get(url, params)
}

//闸机开门
export function getEmpOpenDoor(params) {
    const url = '/ms/api/faceGate/openDoor'
    return axios.get(url, params)
}

//使用人员id查询培训信息
export function getEmpTrainList(params) {
    const url = '/ms/api/train/empList'
    return axios.get(url, params)
}
//获取人员防疫信息
export function getEmpHealthReportList(params) {
    const url = '/ms/api/emp/health/report/list'
    return axios.get(url, params)
}
//新增人员防疫信息
export function getEmpHealthReportAdd(params) {
    const url = '/ms/api/emp/health/report/add'
    return axios.post(url, params)
}
//编辑人员防疫信息
export function getEmpHealthReportEdit(params) {
    const url = '/ms/api/emp/health/report/edit'
    return axios.post(url, params)
}
//删除人员防疫信息
export function getEmpHealthReportDel(params) {
    const url = '/ms/api/emp/health/report/del/'
    return axios.post(url+params)
}
//获取人员交底记录
export function getEmpConfessList(params) {
    const url = '/ms/api/emp/confess/list'
    return axios.get(url, params)
}
//新增人员交底记录
export function getEmpConfessAdd(params) {
    const url = '/ms/api/emp/confess/add'
    return axios.post(url, params)
}
//编辑人员交底记录
export function getEmpConfessEdit(params) {
    const url = '/ms/api/emp/confess/edit'
    return axios.post(url, params)
}
//删除人员交底记录
export function getEmpConfessDel(params) {
    const url = '/ms/api/emp/confess/del/'
    return axios.post(url+ params)
}
//获取人员列表
export function getEmpConfessUserList(params) {
    const url = '/ms/api/emp/confess/user/list'
    return axios.get(url, params)
}

/**
 *
 * @param {*} params 硬件管理
 */
//获取设备硬件列表
export function getDevMachList(params) {
    const url = '/ms/api/device/list'
    return axios.get(url, params)
}

//增加硬件设备
export function getDevMachAdd(params) {
    const url = '/ms/api/device/add'
    return axios.post(url, params)
}

// 删除硬件设备
export function getDevMachRemove(params) {
    const url = '/ms/api/device/delete/'
    return axios.post(url + params)
}

//设备导出文件
export function getDevExportExcel(params) {
    const url = '/ms/api/device/exportExcel'
    return axios.post(url, params)
}

//设备导入文件
export function getDevImportExcel(params) {
    const url = '/ms/api/device/importExcel'
    return axios.post(url, params)
}

//获取人员硬件列表
export function getDevEmpList(params) {
    const url = '/ms/api/device/emp/list'
    return axios.get(url, params)
}

//增加人员硬件列表
export function getDevEmpAdd(params) {
    const url = '/ms/api/device/emp/add'
    return axios.post(url, params)
}

//删除人员硬件列表
export function getDevEmpRemove(params) {
    const url = '/ms/api/device/emp/del/'
    return axios.post(url + params)
}

//获取人员硬件列表
export function getEmpVisitorList(params) {
    const url = '/ms/api/emp/visitor/list'
    return axios.get(url, params)
}


/**
 *
 * @param {*} params 数据分析
 */
//获取通过设备类型分析数据列表
export function getMonthDataListByType(params) {
    const url = '/ms/api/ana/mach/getMonthDataListByType'
    return axios.get(url, params)
}

//获得通过设备持有方式分析列表
export function getMonthDataListByHoldWay(params) {
    const url = '/ms/api/ana/mach/getMonthDataListByHoldWay'
    return axios.get(url, params)
}

//人员分析
export function getEmpData(params) {
    const url = '/ms/api/ana/emp/getData'
    return axios.get(url, params)
}

//每天出勤情况
export function getPerDayAttendData(params) {
    const url = '/ms/api/ana/emp/getWordDayAttendData'
    return axios.get(url, params)
}

//最近出勤人员
export function getRecentAttendEmp(params) {
    const url = '/ms/api/ana/emp/getRecentAttendEmp'
    return axios.get(url, params)
}

//最近进场人员
export function getRecentEnterEmp(params) {
    const url = '/ms/api/ana/emp/getRecentEnterEmp'
    return axios.get(url, params)
}

// 获取设备基本统计信息
export function getMachInfoData(params) {
    const url = '/ms/api/ana/mach/getMachInfoData'
    return axios.get(url, params)
}

//获取设备运行数据统计
export function getMachRunData(params) {
    const url = '/ms/api/ana/mach/getMachRunData'
    return axios.get(url, params)
}


/**
 *
 * @param {*} params 系统设置
 */
//账号组织机构角色编辑
export function getUserRolesEdit(params) {
    const url = '/ms/api/user/dept/roles/edit'
    return axios.post(url, params)
}

//组织机构移动
export function getDeptMove(params) {
    const url = '/ms/api/dept/move/index'
    return axios.post(url, params)
}

//获取用户部门角色列表
export function getDeptUserRoles(params) {
    const url = '/ms/api/user/dept/roles'
    return axios.get(url, params)
}

//已有账号列表
export function getUserImporList(params) {
    const url = '/ms/api/dept/user/import/list'
    return axios.get(url, params)
}

//未与实名制工人做关联已有账号列表
export function getEmpUserImporList(params) {
    const url = '/ms/api/dept/emp/user/import/list'
    return axios.get(url, params)
}

//添加账号(新建)
export function getDeptUserAdd(params) {
    const url = '/ms/api/dept/user/add'
    return axios.post(url, params)
}

//添加账号并与实名制人员关联(新建)
export function getEmpUserAdd(params) {
    const url = '/ms/api/dept/emp/user/add'
    return axios.post(url, params)
}

//添加已有账号
export function getDeptUserImport(params) {
    const url = '/ms/api/dept/user/import'
    return axios.post(url, params)
}

//账号详情
export function getUserDetail(params) {
    const url = '/ms/api/user/detail'
    return axios.get(url, params)
}

//编辑账号
export function getDeptUserEdit(params) {
    const url = '/ms/api/dept/user/edit'
    return axios.post(url, params)
}

//移除账号
export function getDeptUserRemove(params) {
    const url = '/ms/api/dept/user/remove'
    return axios.post(url, params)
}

//查询组织机构树(查询组织机构树)
export function getDeptTree(params) {
    const url = '/ms/api/dept/tree'
    return axios.get(url, params)
}

//组织机构
export function getAlldeptList(params) {
    const url = '/ms/api/dept/tree'
    return axios.get(url, params)
}

//用户权限
export function getRuleTree() {
    const url = '/ms/api/user/rule/list'
    return axios.get(url)
}

//人员工种->数据字典
export function getWorkTypeTotal(params) {
    const url = '/ms/api/emp/workType/list'
    return axios.get(url, params)
}

// 类型 ->数据字典表
export function getTypeList(params) {
    const url = '/ms/api/sys/dict/getChildListByParentCode'
    return axios.get(url, params)
}

// //获取组织机构列表
// export function getDeptList(params) {
//     const url = '/ms/api/dept/list'
//     return axios.get(url, params)
// }
//删除组织机构
export function getDeptRemove(params) {
    const url = '/ms/api/dept/del/'
    return axios.post(url + params)
}

//添加组织机构
export function getDeptAdd(params) {
    const url = '/ms/api/dept/add'
    return axios.post(url, params)
}

//添加组织机构
export function getDeptEdit(params) {
    const url = '/ms/api/dept/edit'
    return axios.post(url, params)
}

//角色列表(不分页)
export function getRolePageList(params) {
    const url = '/ms/api/role/list'
    return axios.get(url, params)
}

//获取用户详情
export function getRoleDetails(params) {
    const url = '/ms/api/role/rule/list'
    return axios.get(url, params)
}

//增加用户
export function getRoleAdd(params) {
    const url = '/ms/api/role/add'
    return axios.post(url, params)
}

//编辑用户
export function getRoleEdit(params) {
    const url = '/ms/api/role/edit'
    return axios.post(url, params)
}

//修改权限
export function geRoletRuleEdit(params) {
    const url = '/ms/api/role/rule/edit'
    return axios.post(url, params)
}

//删除用户
export function getRoleRemove(params) {
    const url = '/ms/api/role/del/'
    return axios.post(url + params)
}

//获取账号列表
export function getUserList(params) {
    const url = '/ms/api/user/list'
    return axios.get(url, params)
}

// 重置账号密码
export function getUserResetPassword(params) {
    const url = '/ms/api/user/resetPassword'
    return axios.post(url, params)
}

//获取内部账号列表
export function getInnerUserList(params) {
    const url = '/ms/api/user/inner/list'
    return axios.get(url, params)
}

//添加内部账号
export function getInnerUserAdd(params) {
    const url = '/ms/api/user/inner/add'
    return axios.post(url, params)
}

//修改内部账号
export function getInnerUserEdit(params) {
    const url = '/ms/api/user/inner/edit'
    return axios.post(url, params)
}

//修改账号
export function getUserEdit(params) {
    const url = '/ms/api/user/edit'
    return axios.post(url, params)
}

//删除账号
export function getUserRemove(params) {
    const url = '/ms/api/user/del/'
    return axios.post(url + params)
}

//获取角色
export function getRoles() {
    const url = '/ms/api/role/getAllRoles'
    return axios.get(url)
}

//查询使用角色
export function getRolerUserlist(params) {
    const url = '/ms/api/role/user/list'
    return axios.get(url, params)
}

// 改变账号状态
export function getUserEnable(params) {
    const url = '/ms/api/user/enable'
    return axios.post(url, params)
}

//数据字典类型列表
export function getDictTypeList(params) {
    const url = '/ms/api/sys/dict/type/list'
    return axios.get(url, params)
}

//添加数据字典类型
export function getDictTypeAdd(params) {
    const url = '/ms/api/sys/dict/type/add'
    return axios.post(url, params)
}

//修改数据字典类型
export function getDictTypeEdit(params) {
    const url = '/ms/api/sys/dict/type/edit'
    return axios.post(url, params)
}

//删除数据字典类型
export function getDictTypeRemove(params) {
    const url = '/ms/api/sys/dict/type/del/'
    return axios.post(url + params)
}

//查询-数据字典
export function getDictType(params) {
    const url = '/ms/api/sys/dict/list'
    return axios.get(url, params)
}

//添加-数据字典
export function getDictAdd(params) {
    const url = '/ms/api/sys/dict/add'
    return axios.post(url, params)
}

//编辑-数据字典
export function getDictEdit(params) {
    const url = '/ms/api/sys/dict/edit'
    return axios.post(url, params)
}

//删除-数据字典
export function getDictRemove(params) {
    const url = '/ms/api/sys/dict/del/'
    return axios.post(url + params)
}

//查询设备类型
export function getMachTypelist(params) {
    const url = '/ms/api/sys/mach/type/list'
    return axios.get(url, params)
}

// 添加设备类型
export function getMachTypeAdd(params) {
    const url = '/ms/api/sys/mach/type/add'
    return axios.post(url, params)
}

// 编辑设备类型
export function getMachTypeEdit(params) {
    const url = '/ms/api/sys/mach/type/edit'
    return axios.post(url, params)
}

//删除设备类型
export function getMachTypeRemove(params) {
    const url = '/ms/api/sys/mach/type/del/'
    return axios.post(url + params)
}

//查询设备品牌
export function getBrandTypelist(params) {
    const url = '/ms/api/sys/mach/brand/list'
    return axios.get(url, params)
}

//添加设备品牌
export function getBrandTypeAdd(params) {
    const url = '/ms/api/sys/mach/brand/add'
    return axios.post(url, params)
}

//编辑设备品牌
export function getBrandTypeEdit(params) {
    const url = '/ms/api/sys/mach/brand/edit'
    return axios.post(url, params)
}

//删除设备品牌
export function getBrandTypeRemnove(params) {
    const url = '/ms/api/sys/mach/brand/del/'
    return axios.post(url + params)
}

//查询设备型号
export function getModelTypelist(params) {
    const url = '/ms/api/sys/mach/model/list'
    return axios.get(url, params)
}

//添加设备型号
export function getModelTypeAdd(params) {
    const url = '/ms/api/sys/mach/model/add'
    return axios.post(url, params)
}

//编辑设备型号
export function getModelTypeEdit(params) {
    const url = '/ms/api/sys/mach/model/edit'
    return axios.post(url, params)
}

//删除设备型号
export function getModelTypeRemnove(params) {
    const url = '/ms/api/sys/mach/model/del/'
    return axios.post(url + params)
}

//权限设置
//查询-模块列表
export function getRuleModuleList(params) {
    const url = '/ms/api/rule/list'
    return axios.get(url, params)
}

// 查询-模块的子孙权限
export function getRuleDescendantList(params) {
    const url = '/ms/api/rule/descendant/list'
    return axios.get(url, params)
}

//添加权限
export function getRuleAdd(params) {
    const url = '/ms/api/rule/add'
    return axios.post(url, params)
}

//编辑权限
export function getRuleEdit(params) {
    const url = '/ms/api/rule/edit'
    return axios.post(url, params)
}

//删除权限
export function getRuleDel(params) {
    const url = '/ms/api/rule/del/'
    return axios.post(url + params)
}

//启用权限
export function getRuleEnable(params) {
    const url = '/ms/api/rule/enable/'
    return axios.post(url + params)
}

//禁用权限
export function getRuleDisable(params) {
    const url = '/ms/api/rule/disable/'
    return axios.post(url + params)
}

//微信用户列表
export function getUserWxmpList(params) {
    const url = '/ms/api/user/wxmp/list'
    return axios.get(url, params)
}

//微信用户操作日志
export function getUserWxmpOperationList(params) {
    const url = '/ms/api/user/wxmp/operation/list'
    return axios.get(url, params)
}

//微信用户操作分析
export function getUserWxmpOperationAnaly(params) {
    const url = '/ms/api/user/wxmp/operation/analy'
    return axios.get(url, params)
}

//微信用户页面访问分析
export function getUserWxmpPageAnaly(params) {
    const url = '/ms/api/user/wxmp/page/analy'
    return axios.get(url, params)
}

//查询算法字典列表
export function getAlgorithmList(params) {
    const url = '/ms/api/sys/algorithm/list'
    return axios.get(url, params)
}

//上传算法类型封面图片
export function getAlgorithmUploadImg(params) {
    const url = '/ms/api/sys/algorithm/uploadImg'
    return axios.post(url, params)
}

//添加算法字典类型
export function getAlgorithmAdd(params) {
    const url = '/ms/api/sys/algorithm/add'
    return axios.post(url, params)
}

//编辑算法字典类型
export function getAlgorithmEdit(params) {
    const url = '/ms/api/sys/algorithm/edit'
    return axios.post(url, params)
}

//删除算法字典类型
export function getAlgorithmDel(params) {
    const url = '/ms/api/sys/algorithm/del/'
    return axios.post(url + params)
}

//启禁用算法字典类型
export function getAlgorithmState(params) {
    const url = 'ms/api/sys/algorithm/state/modify/'
    return axios.post(url + params)
}

//项目算法配置列表
export function getRuleconfList(params) {
    const url = 'ms/api/fim/rule/confList'
    return axios.get(url, params)
}

//项目算法未配置列表
export function getRuleUnconfList(params) {
    const url = 'ms/api/fim/rule/unconfList'
    return axios.get(url, params)
}

//项目添加算法配置
export function getRuleAddconf(params) {
    const url = 'ms/api/fim/rule/addconf'
    return axios.post(url, params)
}

//项目删除算法配置
export function getRuleDelconf(params) {
    const url = 'ms/api/fim/rule/delconf/'
    return axios.post(url + params)
}


/**
 *
 * @param {*} params 大屏
 */
// 查询项目概况
export function getProjectOverview(params) {
    const url = '/ms/api/board/project/overview'
    return axios.get(url, params)
}

//获取大屏项目列表(不分页)
export function getBoardProjectList() {
    const url = '/ms/api/project/list'
    return axios.get(url)
}

//获取人员运行数据
export function getDateEmpList(params) {
    const url = '/ms/api/data/emp/list'
    return axios.get(url, params)
}

//获取设备运行统计数据
export function getBoardDevicedata(params) {
    const url = '/ms/api/board/mach/runData'
    return axios.get(url, params)
}

//设备列表及统计数据
export function getBoardDevicesdatalist(params) {
    const url = '/ms/api/board/mach/list'
    return axios.get(url, params)
}

//设备雷达图和柱状图
export function getBoardradar(params) {
    const url = '/ms/api/board/mach/radar'
    return axios.get(url, params)
}

//轨迹回放列表
export function getHelmetEmpList(params) {
    const url = '/ms/api/emp/helmet/empList'
    return axios.get(url, params)
}

//查询人员列表
export function getemplist(params) {
    const url = '/ms/api/board/emp/list'
    return axios.get(url, params)
}

//查询人员列表
export function getempworkdata(params) {
    const url = '/ms/api/board/emp/getData'
    return axios.get(url, params)
}

//大屏-项目数据统计
export function getBoardPrjDateLatest(params) {
    const url = '/ms/api/board/project/data/latest'
    return axios.get(url, params)
}

//人员每天出勤数据统计
export function getBoardEmpAttendData(params) {
    const url = '/ms/api/board/emp/attendData'
    return axios.get(url, params)
}

//人员发送广播
export function getEmpBroadcast(params) {
    const url = '/ms/api/emp/broadcast'
    return axios.post(url, params)
}

// //广播页人员列表
// export function getEmpBroadList(params) {
//     const url = '/ms/api/emp/helmet/list'
//     return axios.get(url,params)
// }

//安全帽最新数据
export function getEmpHelmetLatestList(params) {
    const url = '/ms/api/emp/helmet/data/latest'
    return axios.get(url, params)
}

//安全帽历史数据
export function getEmpHelmetLogList(params) {
    const url = '/ms/api/emp/helmet/data/log'
    return axios.get(url, params)
}

//导出安全帽历史数据
export function getEmpHelmetLogExport(params, config) {
    const url = '/ms/api/emp/helmet/data/log/export'
    return axios.post(url, params, config)
}

//导出安全帽最近数据
export function getEmpHelmetLatestExport(params, config) {
    const url = '/ms/api/emp/helmet/data/latest/export'
    return axios.post(url, params, config)
}

/**
 *
 * @param {*} params 国网信通
 */
//登录接口
export function getSgitgLogin(params) {
    const url = '/ms/api/sgitg-login'
    return axios.post(url, params)
}

// 退出登录
export function getSgitgLogout(params) {
    const url = '/ms/api/sgitg-logout'
    return axios.post(url, params)
}

//获取设备OBD数据
export function getSgitgMachObdData(params) {
    const url = '/ms/api/sgitg/mach/obd/data'
    return axios.get(url, params)
}

//设备数据统计
export function getSgitgMachStatistics(params) {
    const url = '/ms/api/sgitg/mach/statistics'
    return axios.get(url, params)
}

//设备日均运行数据
export function getSgitgMachDaily(params) {
    const url = '/ms/api/sgitg/mach/daily'
    return axios.get(url, params)
}

//地图设备
// /ms/api/sgitg/mach/list
export function getSgitgMachList(params) {
    const url = '/ms/api/sgitg/mach/list'
    return axios.get(url, params)
}

//报警类型统计
export function getSgitgMachWarnCount(params) {
    const url = '/ms/api/sgitg/mach/warn/count'
    return axios.get(url, params)
}

//报警记录列表
export function getSgitgMachWarnList(params) {
    const url = '/ms/api/sgitg/mach/warn/list'
    return axios.get(url, params)
}

//国网用户列表
export function getSgitgUserList(params) {
    const url = '/ms/api/sgitg/user/list'
    return axios.get(url, params)
}

/**
 *
 * @param {*} params 视频管理
 */
//监控设备列表
export function getDevice(params) {
    const url = '/ms/api/fvs/device/list'
    return axios.get(url, params)
}

//监控设备详情
export function getDeviceDetail(params) {
    const url = '/ms/api/fvs/device/detail'
    return axios.get(url, params)
}

// 添加监控设备
export function getDeviceAdd(params) {
    const url = '/ms/api/fvs/device/add'
    return axios.post(url, params)
}

// 编辑监控设备
export function getDeviceEdit(params) {
    const url = '/ms/api/fvs/device/edit'
    return axios.post(url, params)
}

//删除监控设备
export function getDeviceRemove(params) {
    const url = '/ms/api/fvs/device/del/'
    return axios.post(url + params)
}

//视频监控列表
export function getFvsList(params) {
    const url = '/ms/api/fvs/list'
    return axios.get(url, params)
}

//视频监控直播地址
export function getStreamUrl(params) {
    const url = '/ms/api/fvs/stream/url'
    return axios.get(url, params)
}

//视频监控录像地址
export function getRecord(params) {
    const url = '/ms/api/fvs/record/list'
    return axios.get(url, params)
}

//获取岩石云直播回放token
export function getFvsToken(params) {
    const url = '/ms/api/fvs/token'
    return axios.get(url, params)
}

//获取塔机视频监控列表
export function getCranceFvsList(params) {
    const url = '/ms/api/crane/fvs/list'
    return axios.get(url, params)
}

//获取侧边栏分组列表
export function getGroupTreeList(params) {
    const url = '/ms/api/fvs/group/tree'
    return axios.get(url, params)
}

//分组列表
export function getFvsGroupList(params) {
    const url = '/ms/api/fvs/group/list'
    return axios.get(url, params)
}

//添加分组
export function getFvsGroupAdd(params) {
    const url = '/ms/api/fvs/group/add'
    return axios.post(url, params)
}

//编辑分组
export function getFvsGroupEdit(params) {
    const url = '/ms/api/fvs/group/edit'
    return axios.post(url, params)
}

//删除分组
export function getFvsGroupDel(params) {
    const url = '/ms/api/fvs/group/del/'
    return axios.post(url + params)
}

//删除分组
export function getFimResultStatic(params) {
    const url = '/ms/api/fim/result/static'
    return axios.get(url, params)
}

//智能监控分析（按小时）
export function getFimAnalysisByHour(params) {
    const url = '/ms/api/fim/result/analysisByHour'
    return axios.get(url, params)
}

//智能监控分析（按天）
export function getFimAnalysisByDate(params) {
    const url = '/ms/api/fim/result/analysisByDate'
    return axios.get(url, params)
}

//视频抓拍配置详情
export function getFvsSnapshotDetail(params) {
    const url = '/ms/api/fvs/snapshot/config/detail'
    return axios.get(url, params)
}

//视频抓拍配置
export function getFvsSnapshot(params) {
    const url = '/ms/api/fvs/snapshot/config'
    return axios.post(url, params)
}

//抓拍图片列表
export function getFvsSnapshotList(params) {
    const url = '/ms/api/fvs/snapshot/list'
    return axios.get(url, params)
}

/**
 *
 * @param {*} params 物资管理
 */
// 磅房列表->分页
export function getWeighRoomList(params) {
    const url = '/ms/api/fmam/weighRoom/list'
    return axios.get(url, params)
}

// 磅房列表->不分页
export function getWeighRoom(params) {
    const url = '/ms/api/fmam/weighRoom/list'
    return axios.get(url, params)
}

//新增磅房
export function getWeighRoomAdd(params) {
    const url = '/ms/api/fmam/weighRoom/add'
    return axios.post(url, params)
}

//编辑磅房
export function getWeighRoomEdit(params) {
    const url = '/ms/api/fmam/weighRoom/edit'
    return axios.post(url, params)
}

// 删除磅房
export function getWeighRoomDel(params) {
    const url = '/ms/api/fmam/weighRoom/del/'
    return axios.post(url + params)
}

// 查询磅房授权文件信息
export function getWeighRoomLicenseFileList(params) {
    const url = '/ms/api/fmam/weighRoom/licenseFileList'
    return axios.get(url, params)
}

// 生成授权文件
export function getWeighRoomLicenseGenerate(params) {
    const url = '/ms/api/fmam/weighRoom/licenseGenerate/'
    return axios.post(url + params)
}

//仓库列表->分页
export function getWarehouseList(params) {
    const url = '/ms/api/fmam/warehouse/list'
    return axios.get(url, params)
}

//仓库列表->不分页
export function getWarehouse(params) {
    const url = '/ms/api/fmam/warehouse/list'
    return axios.get(url, params)
}

//新增仓库
export function getWarehouseAdd(params) {
    const url = '/ms/api/fmam/warehouse/add'
    return axios.post(url, params)
}

//编辑修改仓库
export function getWarehouseEdit(params) {
    const url = '/ms/api/fmam/warehouse/edit'
    return axios.post(url, params)
}

//启用仓库
export function getWarehouseEnable(params) {
    const url = '/ms/api/fmam/warehouse/enable/'
    return axios.post(url + params)
}

//禁用仓库
export function getWarehouseDisable(params) {
    const url = '/ms/api/fmam/warehouse/disable/'
    return axios.post(url + params)
}

//删除仓库
export function getWarehouseDel(params) {
    const url = '/ms/api/fmam/warehouse/del/'
    return axios.post(url + params)
}

// 物资合作单位列表-分页
export function getSupplierList(params, page) {
    const url = '/ms/api/fmam/supplier/list?pageNum=' + page
    return axios.get(url, params)
}

//收发料供应商列表
export function getAllSupplierList(params) {
    const url = '/ms/api/fmam/supplier/list'
    return axios.get(url, params)
}

// 选择合作单位列表
export function getSupplierCorpList(params) {
    const url = '/ms/api/fmam/supplier/corpList'
    return axios.post(url, params)
}

//物资合作单位详情
export function getSupplierDetail(params) {
    const url = '/ms/api/fmam/supplier/detail/'
    return axios.post(url + params)
}

//移除物资合作单位
export function getSupplierDel(params) {
    const url = '/ms/api/fmam/supplier/del/'
    return axios.post(url + params)
}

//材料明细列表页 - 分页
export function getMatTypelist(params) {
    const url = '/ms/api/fmam/matType/list'
    return axios.get(url, params)
}

//材料明细列表页 - 不分页
export function getMatTypeOptionlist(params) {
    const url = '/ms/api/fmam/matType/option/list'
    return axios.get(url, params)
}

//删除材料明细
export function getMatTypeDel(params) {
    const url = '/ms/api/fmam/matType/del/'
    return axios.post(url + params)
}

//编辑材料明细
export function getMatTypeEdit(params) {
    const url = '/ms/api/fmam/matType/edit'
    return axios.post(url, params)
}

//新增材料明细
export function getMatTypeAdd(params) {
    const url = '/ms/api/fmam/matType/add'
    return axios.post(url, params)
}

//材料列表-分页
export function getMatList(params, page) {
    const url = '/ms/api/fmam/mat/list?pageNum=' + page
    return axios.get(url, params)
}

//材料列表-不分页
export function getAllMatList(params) {
    const url = '/ms/api/fmam/mat/list'
    return axios.get(url, params)
}

//新增材料
export function getMatAdd(params) {
    const url = '/ms/api/fmam/mat/add'
    return axios.post(url, params)
}

//编辑材料
export function getMatEdit(params) {
    const url = '/ms/api/fmam/mat/edit'
    return axios.post(url, params)
}

//获取所有的材料单位
export function getUnitList() {
    const url = '/ms/api/fmam/unit/list'
    return axios.get(url)
}

//删除材料
export function getMatDel(params) {
    const url = '/ms/api/fmam/mat/del/'
    return axios.post(url + params)
}

//添加物资合作单位
export function getSupplierAdd(params) {
    const url = '/ms/api/fmam/supplier/add'
    return axios.post(url, params)
}

//收发料明细台账列表
export function getWeighNoteList(params) {
    const url = '/ms/api/fmam/weighNote/list'
    return axios.post(url, params)
}

//收发料磅单详情
export function getWeighNoteDetail(params) {
    const url = '/ms/api/fmam/weighNote/detail'
    return axios.get(url, params)
}

// 供应商供货明细列表
export function getAnalysisList(params) {
    const url = '/ms/api/fmam/analysis/supplier/list'
    return axios.post(url, params)
}
//供应商偏差情况分析-超负差率列表
export function getAnalysisDiffNum(params) {
    const url = '/ms/api/fmam/analysis/supplier/diffNum'
    return axios.post(url, params)
}

//供应商偏差情况分析-超负差比列表
export function getAnalysisDiffRate(params) {
    const url = '/ms/api/fmam/analysis/supplier/diffRate'
    return axios.post(url, params)
}

// 按材料明细进行收料和发料汇总分析
export function getAnalysisMat(params) {
    const url = '/ms/api/fmam/analysis/mat'
    return axios.post(url, params)
}

//收发料汇总分析之根据材料id查找磅单列表
export function getAnalysisMatList(params) {
    const url = '/ms/api/fmam/analysis/mat/getWeighNoteList'
    return axios.get(url, params)
}

//供应商偏差情况分析-按供应商分组
export function getAnalysisSupplierGroup(params) {
    const url = '/ms/api/fmam/analysis/supplier/group'
    return axios.post(url, params)
}

//供应商偏差情况分析-按材料明细分组
export function getAnalysisSupplierMatGroup(params) {
    const url = '/ms/api/fmam/analysis/supplier/matGroup'
    return axios.post(url, params)
}

// 按材料类别进行收料和发料汇总分析
export function getAnalysisMatType(params) {
    const url = '/ms/api/fmam/analysis/matType'
    return axios.post(url, params)
}

//根据材料类别id查找磅单列表
export function getAnalysisMatTypeList(params) {
    const url = '/ms/api/fmam/analysis/matType/getWeighNoteList'
    return axios.get(url, params)
}

//供应商偏差情况分析-整体偏差数据统计
export function getAnalysisSupplierDiffData(params) {
    const url = '/ms/api/fmam/analysis/supplier/diffData'
    return axios.post(url, params)
}

// 根据供应商id查找磅单列表
export function getAnalysisSupplierWeighNoteList(params) {
    const url = '/ms/api/fmam/analysis/supplier/getWeighNoteList'
    return axios.get(url, params)
}

//批量导入材料
export function getMatimportExcel(params) {
    const url = '/ms/api/fmam/mat/importExcel'
    return axios.post(url, params)
}

//导出收发料汇总分析
export function getFmamMatExport(params) {
    const url = '/ms/api/fmam/analysis/mat/export'
    return axios.post(url, params)
}

//导出供应商供货偏差分析数据
export function getFmamSupplierExport(params) {
    const url = '/ms/api/fmam/analysis/supplier/export'
    return axios.post(url, params)
}

//收发料台账导出
export function getFmamWeighNoteExport(params) {
    const url = '/ms/api/fmam/weighNote/export'
    return axios.post(url, params)
}


/**
 *
 * @param {*} params 消息管理
 */
//首页消息列表
export function getMsgList(params) {
    const url = '/ms/api/msg/list'
    return axios.get(url, params)
}

//将消息标记为已读
export function getMsgRead(params) {
    const url = '/ms/api/msg/read'
    return axios.post(url, params)
}

//根据消息id查找消息详情
export function getMsgMachWarnDetail(params) {
    const url = '/ms/api/msg/machWarn/detail'
    return axios.get(url, params)
}

//获取首页未读消息数
export function getUnreadMsgNum(params) {
    const url = '/ms/api/msg/getUnreadMsgNum'
    return axios.get(url, params)
}

//删除消息
export function getMsgDel(params) {
    const url = '/ms/api/msg/del'
    return axios.post(url, params)
}

//删除所有消息
export function getMsgDelAll(params) {
    const url = '/ms/api/msg/delAll'
    return axios.post(url, params)
}

//标注所有消息已读
export function getMsgReadAll(params) {
    const url = '/ms/api/msg/readAll'
    return axios.post(url, params)
}


/**
 *
 * @param {*} params 运营管理
 */
//新闻或应用案例列表
export function getNewList(params) {
    const url = '/ms/api/news/list'
    return axios.get(url, params)
}

//上传新闻封面
export function uploadImgNews(params) {
    const url = '/ms/api/news/uploadImg'
    return axios.post(url, params)
}

//修改新增新闻或者应用案例
export function addNews(params) {
    if (params.id) {
        const url = '/ms/api/news/edit'
        return axios.post(url, params)
    } else {
        const url = '/ms/api/news/add'
        return axios.post(url, params)
    }

}

//删除新闻或者应用案例
export function delNews(params) {
    const url = '/ms/api/news/del/'
    return axios.post(url + params)
}

/**
 *
 * @param {*} params 环境管理
 */
//环境-设备列表
export function getDustList(params) {
    const url = '/ms/api/env/dust/list'
    return axios.get(url, params)
}

//环境-添加设备
export function getDustAdd(params) {
    const url = '/ms/api/env/dust/add'
    return axios.post(url, params)
}

//环境-编辑设备
export function getDustEdit(params) {
    const url = '/ms/api/env/dust/edit'
    return axios.post(url, params)
}

//设备分组列表
export function getEnvGroupList(params) {
    const url = '/ms/api/env/group/list'
    return axios.get(url, params)
}

//添加设备分组
export function getEnvGroupAdd(params) {
    const url = '/ms/api/env/group/add'
    return axios.post(url, params)
}

//修改设备分组
export function getEnvGroupEdit(params) {
    const url = '/ms/api/env/group/edit'
    return axios.post(url, params)
}

//删除设备分组
export function getEnvGroupDel(params) {
    const url = '/ms/api/env/group/del/'
    return axios.post(url + params)
}

//环境-可添加的报警对象列表
export function getAddDustList(params) {
    const url = '/ms/api/env/warn/getDustList'
    return axios.get(url, params)
}

//环境-删除设备
export function getDustDel(params) {
    const url = '/ms/api/env/dust/del/'
    return axios.post(url + params)
}

//环境-报警对象列表
export function getDustObjectlist(params) {
    const url = '/ms/api/env/warn/object/list'
    return axios.get(url, params)
}

//环境-报警记录列表
export function getEnvRecordlist(params) {
    const url = '/ms/api/env/warn/record/list'
    return axios.get(url, params)
}

//环境-报警记录处理
export function getEnvRecordHandle(params) {
    const url = '/ms/api/env/warn/record/handle'
    return axios.post(url, params)
}

//环境-批量报警记录处理
export function getEnvRecordBatchHandle(params) {
    const url = '/ms/api/env/warn/record/batchHandle'
    return axios.post(url, params)
}

//查询环境设备-最新数据
export function getDustDateList(params) {
    const url = '/ms/api/env/data/latest'
    return axios.get(url, params)
}

//查询环境设备-历史数据
export function getDustDatelog(params) {
    const url = '/ms/api/env/data/log'
    return axios.get(url, params)
}

// 环境分析-近七日报警情况
export function getDustWarnlog(params) {
    const url = '/ms/api/env/warn/log'
    return axios.get(url, params)
}

//查看环境报警详情
export function getEnvRecordDetails(params) {
    const url = '/ms/api/env/warn/record/detail'
    return axios.get(url, params)
}

//环境设备历史数据分析
export function getBoardEvnLog(params) {
    const url = '/ms/api/env/data/log/analysis'
    return axios.get(url, params)
}

//环境报警情况分析
export function getBoardEvnWarn(params) {
    const url = '/ms/api/env/warn/analysis'
    return axios.get(url, params)
}

//环境设备历史数据导出
export function getEvnLogExport(params) {
    const url = '/ms/api/env/data/log/export'
    return axios.get(url, params)
}

//环境报警次数统计
export function getEvnWarnCount(params) {
    const url = '/ms/api/env/warn/count'
    return axios.get(url, params)
}

//环境设备-历史数据（时间范围-分页）
export function getEvnLogPages(params) {
    const url = '/ms/api/env/data/log/pages'
    return axios.get(url, params)
}

//
//查询环境水质最新数据
export function getWaterList(params) {
    const url = '/ms/api/env/data/water/latest'
    return axios.get(url, params)
}

//查询环境水质历史数据
export function getWaterlog(params) {
    const url = '/ms/api/env/data/water/log'
    return axios.get(url, params)
}

/**
 *
 * @param {*} params 智能监控
 */
//获取人员列表
export function getFimPersonList(params) {
    const url = '/ms/api/fim/person/list'
    return axios.get(url, params)
}

//增加人员
export function getFimPersonAdd(params) {
    const url = '/ms/api/fim/person/add'
    return axios.post(url, params)
}

//编辑人员
export function getFimPersonEdit(params) {
    const url = '/ms/api/fim/person/edit'
    return axios.post(url, params)
}

//删除人员
export function getFimPersonDel(params) {
    const url = '/ms/api/fim/person/del/'
    return axios.post(url + params)
}

//上传图片到服务器
export function getFimPersonUploadimg(params) {
    const url = '/ms/api/fim/person/uploadImg'
    return axios.post(url, params)
}

//导入劳务人员信息
export function getFimPersonImport(params) {
    const url = '/ms/api/fim/person/import'
    return axios.post(url, params)
}

//获取报警记录列表
export function getFimResultList(params) {
    const url = '/ms/api/fim/result/list'
    return axios.get(url, params)
}

//报警记录详情
export function getFimResultDetail(params) {
    const url = '/ms/api/fim/result/detail'
    return axios.get(url, params)
}

//处理报警记录
export function getFimResultHandle(params) {
    const url = '/ms/api/fim/result/handle'
    return axios.post(url, params)
}

//智能监控分析
export function getFimResultAnalysis(params) {
    const url = '/ms/api/fim/result/analysis'
    return axios.get(url, params)
}
//智能监控设置
//报警类型列表
export function getFimRuleList(params) {
    const url = '/ms/api/fim/rule/list'
    return axios.get(url, params)
}

//设置接收人员
export function getFimRuleSetUser(params) {
    const url = '/ms/api/fim/rule/setUser'
    return axios.post(url, params)
}

//环境报警设置
//报警规则列表
export function getWarnRuleList(params) {
    const url = '/ms/api/env/warn/rule/list'
    return axios.get(url, params)
}

//新增报警规则
export function getWarnRuleAdd(params) {
    const url = '/ms/api/env/warn/rule/add'
    return axios.post(url, params)
}

//编辑报警规则
export function getWarnRuleEdit(params) {
    const url = '/ms/api/env/warn/rule/edit'
    return axios.post(url, params)
}

//报警对象列表
export function getWarnObjectList(params) {
    const url = '/ms/api/env/warn/object/list'
    return axios.get(url, params)
}

// 可添加的报警对象列表
export function getWarnDustList(params) {
    const url = '/ms/api/env/warn/getDustList'
    return axios.get(url, params)
}

//启用停用
export function getWarnRuleEnable(params) {
    const url = '/ms/api/env/warn/rule/enable'
    return axios.post(url, params)
}

//删除报警规则
export function getWarnRuleDel(params) {
    const url = '/ms/api/env/warn/rule/del/'
    return axios.post(url + params)
}

//设置报警对象
export function getWarnMachAdd(params) {
    const url = '/ms/api/env/warn/rule/addObject'
    return axios.post(url, params)
}

//查询接收报警的用户及接收方式
export function getWarnEmpList(params) {
    const url = '/ms/api/env/warn/rule/getUsers'
    return axios.get(url, params)
}

//设置消息接收人
export function getWarnEmpAdd(params) {
    const url = '/ms/api/env/warn/rule/addUser'
    return axios.post(url, params)
}


/**
 *
 * @param {*} params 特种设备
 */
//特种设备
//塔机
//塔机绑定摄像头
export function getCraneBindFvs(params) {
    const url = '/ms/api/crane/bind/fvs'
    return axios.post(url, params)
}

//塔吊报警记录统计
export function getWarnFseCraneCount(params) {
    const url = '/ms/api/fse/warn/crane/count'
    return axios.get(url, params)
}

//获取监控列表
export function getCommonFvsList(params) {
    const url = '/ms/api/fse/fvs/list'
    return axios.get(url, params)
}

//塔机列表(分页)
export function getCraneList(params) {
    const url = '/ms/api/crane/list'
    return axios.get(url, params)
}

//获取塔机详情
export function getCraneDetails(params) {
    const url = '/ms/api/crane/detail'
    return axios.get(url, params)
}

//添加塔机
export function getCraneAdd(params) {
    const url = '/ms/api/crane/add'
    return axios.post(url, params)
}

//编辑塔机
export function getCraneEdit(params) {
    const url = '/ms/api/crane/edit'
    return axios.post(url, params)
}

//删除塔机
export function getCraneDel(params) {
    const url = '/ms/api/crane/del/'
    return axios.post(url + params)
}

// 设备绑定
export function getCraneBind(params) {
    const url = '/ms/api/crane/bind'
    return axios.post(url, params)
}

// 设备解绑
export function getCraneUnbind(params) {
    const url = '/ms/api/crane/unbind/'
    return axios.post(url + params)
}
//获取塔机及时数据
export function getCraneDateLatest(params) {
    const url = '/ms/api/crane/data/latest'
    return axios.get(url, params)
}

//获取塔机监控的历史数据
export function getCraneDateLog(params) {
    const url = '/ms/api/crane/data/log'
    return axios.get(url, params)
}

//吊装记录
export function getCraneRecordList(params) {
    const url = '/ms/api/crane/record/list'
    return axios.get(url, params)
}

//特种设备报警规则列表
export function getFseRuleList(params) {
    const url = '/ms/api/fse/warn/rule/list'
    return axios.get(url, params)
}

//特种设备报警接收人及方式设置
export function getFseRuleSetUser(params) {
    const url = '/ms/api/fse/warn/user/add'
    return axios.post(url, params)
}
//吊索具列表
export function getFsetoolList(params) {
    const url = '/ms/api/crane/tool/list'
    return axios.get(url, params)
}
//新增吊索具
export function AddFsetool(params) {
    const url = '/ms/api/crane/tool/add'
    return axios.post(url, params)
}
//新增吊索具
export function editFsetool(params) {
    const url = '/ms/api/crane/tool/edit'
    return axios.post(url, params)
}
//删除吊索具
export function delFsetool(params) {
    const url = '/ms/api/crane/tool/del/'
    return axios.post(url + params)
}

//升降机
//升降机详情
export function getLiftDetails(params) {
    const url = '/ms/api/lift/detail'
    return axios.get(url, params)
}

//升降机绑定摄像头
export function getLiftBindFvs(params) {
    const url = '/ms/api/lift/bind/fvs'
    return axios.post(url, params)
}

//获取升降机视频监控列表
export function getLiftFvsList(params) {
    const url = '/ms/api/lift/fvs/list'
    return axios.get(url, params)
}

//升降纪录统计
export function getLiftRecordCount(params) {
    const url = '/ms/api/lift/record/count'
    return axios.get(url, params)
}

//升降机列表
export function getLiftList(params) {
    const url = '/ms/api/lift/list'
    return axios.get(url, params)
}

//添加升降机
export function getLiftAdd(params) {
    const url = '/ms/api/lift/add'
    return axios.post(url, params)
}

//编辑升降机
export function getLiftEdit(params) {
    const url = '/ms/api/lift/edit'
    return axios.post(url, params)
}

//删除升降机
export function getLiftDel(params) {
    const url = '/ms/api/lift/del/'
    return axios.post(url + params)
}

// 设备绑定
export function getLiftBind(params) {
    const url = '/ms/api/lift/bind'
    return axios.post(url, params)
}

// 设备解绑
export function getLiftUnbind(params) {
    const url = '/ms/api/lift/unbind'
    return axios.post(url, params)
}

//获取塔机及时数据
export function getLiftDateLatest(params) {
    const url = '/ms/api/lift/data/latest'
    return axios.get(url, params)
}

//获取塔机监控的历史数据
export function getLiftDateLog(params) {
    const url = '/ms/api/lift/data/log'
    return axios.get(url, params)
}

//报警记录列表
export function getFseRecordList(params) {
    const url = '/ms/api/fse/warn/record/list'
    return axios.get(url, params)
}

//处理报警
export function getFseRecordHandle(params) {
    const url = '/ms/api/fse/warn/record/handle'
    return axios.post(url, params)
}

//批量处理报警记录
export function getFseRecordBatchHandle(params) {
    const url = '/ms/api/fse/warn/record/batchHandle'
    return axios.post(url, params)
}

//查看特种设备报警详情
export function getFseRecordDetails(params) {
    const url = '/ms/api/fse/warn/record/detail'
    return axios.get(url, params)
}

//升降机记录
export function getLiftRecordList(params) {
    const url = '/ms/api/lift/record/list'
    return axios.get(url, params)
}

//龙门吊
//龙门吊列表
export function getGantryList(params) {
    const url = '/ms/api/gantry/list'
    return axios.get(url, params)
}

//添加龙门吊
export function getGantryAdd(params) {
    const url = '/ms/api/gantry/add'
    return axios.post(url, params)
}

//龙门详情
export function getGantryDetails(params) {
    const url = '/ms/api/gantry/details'
    return axios.get(url, params)
}

//编辑龙门吊
export function getGantryEdit(params) {
    const url = '/ms/api/gantry/edit'
    return axios.post(url, params)
}

// 删除龙门吊
export function getGantryDel(params) {
    const url = '/ms/api/gantry/del/'
    return axios.post(url + params)
}

//绑定硬件
export function getGantryBind(params) {
    const url = '/ms/api/gantry/bind'
    return axios.post(url, params)
}

//解绑硬件
export function getGantryUnBind(params) {
    const url = '/ms/api/gantry/unbind/'
    return axios.post(url + params)
}

//龙门吊监测
export function getGantryMonitor(params) {
    const url = '/ms/api/gantry/monitor'
    return axios.get(url, params)
}

//龙门吊历史数据
export function getGantryLog(params) {
    const url = '/ms/api/gantry/gantryLog'
    return axios.get(url, params)
}

//架桥机
//架桥机监测
export function getBridgeMonitor(params) {
    const url = '/ms/api/bridge/monitor'
    return axios.get(url, params)
}

//架桥机列表
export function getBridgeList(params) {
    const url = '/ms/api/bridge/list'
    return axios.get(url, params)
}

//乔架机详情
export function getBridgeDetails(params) {
    const url = '/ms/api/bridge/details'
    return axios.get(url, params)
}

//添加架桥机
export function getBridgeAdd(params) {
    const url = '/ms/api/bridge/add'
    return axios.post(url, params)
}

//编辑架桥机
export function getBridgeEdit(params) {
    const url = '/ms/api/bridge/edit'
    return axios.post(url, params)
}

//删除架桥机
export function getBridgeDel(params) {
    const url = '/ms/api/bridge/del/'
    return axios.post(url + params)
}

//绑定硬件
export function getBridgeBind(params) {
    const url = '/ms/api/bridge/bind'
    return axios.post(url, params)
}

//解绑硬件
export function getBridgeUnBind(params) {
    const url = '/ms/api/bridge/unbind/'
    return axios.post(url + params)
}

//架桥机历史数据
export function getBridgeLog(params) {
    const url = '/ms/api/bridge/bridgeLog'
    return axios.get(url, params)
}


//添加特种设备履历
export function setResumeAdd(params) {
    const url = '/ms/api/resume/add'
    return axios.post(url , params)
}
//修改特种设备履历
export function setResumeEdit(params) {
    const url = '/ms/api/resume/edit'
    return axios.post(url , params)
}
//删除特种设备履历
export function setResumeDel(params) {
    const url = '/ms/api/resume/del/'
    return axios.post(url+params)
}
//特种设备履历列表
export function getResumeList(params) {
    const url = '/ms/api/resume/list'
    return axios.get(url , params)
}
//附件上传
export function setResumeUpload(params) {
    const url = '/ms/api/resume/upload'
    return axios.post(url , params)
}

//云智筑跳转地址
export function getFimvcsHome(params) {
    const url = '/ms/api/fim/vcs/home'
    return axios.get(url, params)
}

//查询设备类型列表
export function getMachTypeGetList_V1(params) {
    const url = '/ms/api/v1/sys/mach/type/tree'
    return axios.get(url, params)
}

//获取地图显示离线时间
export function getMinutes(params) {
    const url = '/ms/api/index/getMinutes'
    return axios.get(url, params)
}

//查询拥有特定权限的组织机构列表
export function getRuleCodeList(params) {
    const url = '/ms/api/dept/list'
    return axios.get(url, params)
}

//工种列表(分页)
export function getEmpWorkTypeList(params) {
    const url = '/ms/api/emp/workType/list'
    return axios.get(url, params)
}

//添加工种
export function getEmpWorkTypeAdd(params) {
    const url = '/ms/api/emp/workType/add'
    return axios.post(url, params)
}

//编辑工种
export function getEmpWorkTypeEdit(params) {
    const url = '/ms/api/emp/workType/edit'
    return axios.post(url, params)
}

//删除工种
export function getEmpWorkTypeDel(params) {
    const url = '/ms/api/emp/workType/del/'
    return axios.post(url + params)
}

//获取系统外链地址
export function getExternalLinkUrl(params) {
    const url = '/ms/api/external/link/url'
    return axios.get(url, params)
}

//用户添加组织机构
export function getUserDeptAdd(params) {
    const url = '/ms/api/user/dept/add'
    return axios.post(url, params)
}

//设置组织机构扩展信息
export function getDeptExtraSet(params) {
    const url = '/ms/api/dept/extra/set'
    return axios.post(url, params)
}

//获取组织机构扩展信息
export function getDeptExtra(params) {
    const url = '/ms/api/dept/extra'
    return axios.get(url, params)
}

//班组统计
export function getAnaGroupEmp(params) {
    const url = '/ms/api/ana/emp/getGroupEmp'
    return axios.get(url, params)
}

//合作单位统计
export function getAnaCorpEmp(params) {
    const url = '/ms/api/ana/emp/getCorpEmp'
    return axios.get(url, params)
}

//工种统计
export function getAnaWorkEmp(params) {
    const url = '/ms/api/ana/emp/getWorkEmp'
    return axios.get(url, params)
}

//查询已闸机接入平台
export function getplatformList(params) {
    const url = '/ms/api/faceGate/platformList'
    return axios.get(url, params)
}

//批量处理报警记录
export function getFimResultbatchHandle(params) {
    const url = '/ms/api/fim/result/batchHandle'
    return axios.post(url, params)
}

//批量删除报警记录
export function getFimResultbatchDel(params) {
    const url = '/ms/api/fim/result/del'
    return axios.post(url, params)
}

//现场模拟
//现场模拟详情
export function getSenceDetails(params) {
    const url = '/ms/api/scene/details'
    return axios.get(url, params)
}

//图片上传
export function getSenceUploadImg(params) {
    const url = '/ms/api/scene/uploadImg'
    return axios.post(url, params)
}

//修改现场模拟
export function getSenceEdit(params) {
    const url = '/ms/api/scene/edit'
    return axios.post(url, params)
}

//添加现场模拟
export function getSenceAdd(params) {
    const url = '/ms/api/scene/add'
    return axios.post(url, params)
}

//删除现场模拟
export function getSenceDel(params) {
    const url = '/ms/api/scene/del/'
    return axios.post(url + params)
}


//添加电子围栏报警
export function getEmpWarnSettingAdd(params) {
    const url = '/ms/api/warn/emp/setting/add'
    return axios.post(url, params)
}

//编辑电子围栏报警
export function getEmpWarnSettingEdit(params) {
    const url = '/ms/api/warn/emp/setting/edit'
    return axios.post(url, params)
}

//导出记录
export function getExpList(params) {
    const url = '/ms/api/export/list'
    return axios.get(url, params)
}

//人员审批列表
export function getapplyList(params) {
    const url = '/ms/api/emp/apply/list'
    return axios.get(url, params)
}

//人员审批详情
export function getapplyDetail(params) {
    const url = '/ms/api/emp/apply/detail'
    return axios.get(url, params)
}

//人员审批
export function getapplyCheck(params) {
    const url = '/ms/api/emp/apply/check'
    return axios.post(url,params)
}

//状态总数
export function getEmpapproveNum(params) {
    const url = '/ms/api/emp/apply/num'
    return axios.get(url, params)
}

//删除
export function getDel(params) {
    const url = '/ms/api/emp/apply/del/'
    return axios.post(url + params)
}

//获取移动端二维码
export function getempQr(params) {
    const url = '/ms/api/emp/empQr/download/'
    return axios.post(url + params)
}

//获取组织机构自定义属性
export function getDeptExtraCustomizeField(params) {
    const url = '/ms/api/dept/extra/customize/field'
    return axios.get(url, params)
}

// 获取外链参数
export function getExternalConfig(params) {
    const url = '/ms/api/externalUser/selectByPlatformAndDeptId'
    return axios.get(url, params)
}

//同步班组信息
export function syncGroup(params) {
    const url = '/ms/api/group/anon/syncGroup'
    return axios.post(url, params)
}

//同步人员信息
export function syncEmp(params) {
    const url = '/ms/api/emp/anon/syncWorker'
    return axios.post(url, params)
}

// 视频设备排序
export function fvsSort(params) {
    const url = '/ms/api/fvs/device/editSort'
    return axios.post(url, params)
}

// 更新合作单位信息
export function updateCrop(params) {
    const url = `/ms/api/group/syncCropName?deptId=${params.id}`
    return axios.post(url, {})
}
